import request from "@/request";
// 分页查询
export const listPage = (data) => {
    return request({
        url:"sys/notice/listPage",
        method:"get",
        data,
    });
};
//新增
export const save = (data) => {
    return request({
        url:"sys/notice/save",
        method:"post",
        data
    })
}
//编辑
export const update = (data) => {
    const { id } = data;
    delete data.id;
    return request({
        url:'sys/notice/update/${id}',
        method:"post",
        data,
    })
}
// 删除
export const remove = (data) => {
    return request({
      url: "sys/notice/delete",
      method: "post",
      data,
    });
  };
